package com.gaoding.shared.dict.dto.request;

import com.gaoding.commons.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * @author mobai
 * @since 2021/4/15 14:08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("新增服务语言配置实体")
public class CreateDictServiceLanguageDTO extends BaseDto {

    /**
     * 语言编码
     */
    @ApiModelProperty("语言编码")
    @NotEmpty(message = "语言编码不得为空")
    private String languageCode;

    /**
     * 服务编码
     */
    @ApiModelProperty("服务编码")
    @NotEmpty(message = "服务编码不得为空")
    private String serviceCode;

    /**
     * 排序编号 越小越上面
     */
    @ApiModelProperty("排序")
    private Integer sort=0;
}
